function myInstanceof(L,R){
    
    while(L!==null){
        if(L.__proto__===R.prototype){
            return true;
        }
        L = L.__proto__
    }
    return false;
}
var arr = []
myInstanceof(arr,Array)